package cn.com.thinvent.dispatch.service.biz;

import cn.com.thinvent.dispatch.entity.ModelResult;
import cn.com.thinvent.dispatch.entity.ModelTask;
import cn.com.thinvent.dispatch.entity.request.TaskDTO;
import cn.com.thinvent.dispatch.entity.response.*;

public interface ModelTaskService {

    PagedGridResult<ModelTaskResponse> list(Integer userId, String taskName, Integer pageNum, Integer pageSize);

    ModelTask saveOrUpdate(TaskDTO taskDTO);

    Integer delete(Integer taskId);

    void actionNow(Integer taskId, Integer userId);

    ActionResultResponse actionResult(Integer taskId);

    ResultDetailResponse resultDetail(Integer taskId, Integer pageNum, Integer pageSize);

    void resActionNow(Integer taskId, Integer integer);

    void continueActionNow(Integer taskId, Integer integer);

    PagedGridResult<ModelResult> resultPageList(Integer taskId, Integer pageNum, Integer pageSize);

    ResultPageDetailResponse resultPageDetail(Integer taskId, Integer resultId);

    void updateResult(Integer resultId, String result);
}
